﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SerialDemo.Models
{
    public class Servo:BindableBase
    {
        public int Id { get; set; }
        public string Name { get; set; }

        private double angle;
        public double Angle
        {
            get { return angle; }
            set { SetProperty(ref angle, value); }
        }

        private double setAngle;
        public double SetAngle
        {
            get { return setAngle; }
            set { SetProperty(ref setAngle, value); }
        }

        public Servo(int id,string name,double angle)
        {
            this.Id = id;
            this.Name = name;
            this.Angle = angle;
        }


    }
}
